-- GENERATED SPELL FOR [Sandfury Hideskinner] --


function spell0_5645(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5645', 696, 1)
end

function Sorts_5645(pUnit, Event)
local choix_sorts_5645 = math.random(0, 0)
if choix_sorts_5645 == 0 then
pUnit:RegisterEvent('spell0_5645', 1, 1)
end
end

function mob5645_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5645', math.random(1500, 3000), 1)
end

function mob5645_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5645_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5645_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5645, 1, 'mob5645_Action')
RegisterUnitEvent(5645, 2, 'mob5645_Leave')
RegisterUnitEvent(5645, 3, 'mob5645_Kill')
RegisterUnitEvent(5645, 4, 'mob5645_Die')
